package com.example.smartclassroom.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;

import java.time.LocalDate;
import java.util.List;

@AllArgsConstructor
@NoArgsConstructor
@Data
@TableName("course_selection")
public class CourseSelection {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private Integer studentId;
    private Integer courseId;
    private Integer teacherId;
    private String courseName;
    private String type;
    private Integer score;
    private Integer num;
    private Integer joinNum;
    private Integer roomId;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate startTime;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate endTime;
    private String weekDay;
    private String segment;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate startTimeChoose;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate endTimeChoose;
    private String teacherName;
    private String roomName;
    private List<Student> studentNameList;
    @TableField(insertStrategy = FieldStrategy.NEVER,updateStrategy = FieldStrategy.NEVER)
    private Integer offset;
    @TableField(insertStrategy = FieldStrategy.NEVER,updateStrategy = FieldStrategy.NEVER)
    private Integer pageSize;
}
